package infostroy.bookagolf.components.panels;

import infostroy.bookagolf.components.controls.GolfScrollBar;

import javax.swing.*;
import java.awt.*;

/**
 * Created by valer_000 on 2/1/14.
 */
public class ScrollPanel extends JScrollPane {

    public ScrollPanel(Component view) {
        super(view);
    }

    public ScrollPanel(Component view, int vsbPolicy, int hsbPolicy) {
        super(view, vsbPolicy, hsbPolicy);
    }

    @Override
    public JScrollBar createVerticalScrollBar() {
        return new GolfScrollBar(ScrollBar.VERTICAL);
    }

    @Override
    public JScrollBar createHorizontalScrollBar() {
        return new GolfScrollBar(ScrollBar.HORIZONTAL);
    }
}
